package com.wyk.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**返回前端的封装类
 * @author WangYuKai
 * @Date 2022/5/12
 * @apiNote
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Result<T> {
    //属性
    private Integer code;//标码
    private String message;//消息
    private T data;//数据

    //公共返回方法
    public Result(Integer code,String message){
        this(code,message,null);
    }


}
